//
//  YDStockSearchView.h
//  PeiZiWangBei
//
//  Created by LK-IOS on 2017/11/10.
//  Copyright © 2017年 LK-IOS. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YDStockSearchView;

@protocol SYStockSearchViewDelegate <NSObject>

@optional

/**
 开始搜索

 @param searchView 搜索界面
 @param string 搜索字段
 */
-(void)stockSearchView:(YDStockSearchView *)searchView searchString:(NSString *)string isStoreHistory:(BOOL)isHistory;


@end

@interface YDStockSearchView : UIView
//搜索框进入编辑状态
-(void)searhBarBeginFirstResgister;
//搜索框结束编辑
-(void)searhBarEndEditor;


//点击历史记录开始搜索
-(void)searchWithSearchString:(NSString *)searchString;

@property (nonatomic , weak)id<SYStockSearchViewDelegate>delegate;



@end
